#ifndef __RETRACTOR__
#define __RETRACTOR__
#include <wiringPi.h>
#include <softPwm.h>
#include <stdio.h>
#include <wiringPi.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>

#define pwm_pin 7                                            //定义PWM引脚
#define just_R_pin 24                                        //定义正转继电器引脚
#define back_R_pin 25                                        //定义反转继电器引脚
pthread_t Retractor_id;                                      //水采样线程id
int Retractor_cmd;                                       //cmd'
pthread_mutex_t mutex_retractor; /*互斥锁*/

int inin_Retractor(void); //初始化控制收放机的引脚
void *Retractor(void *arg);
void set_Retractor_cmd(int cmd); //控制收放机操作，0停止 1正转 2反转
#endif